import tkinter


x = int(input())
y = int(input())
k = int(input())
e = 10

master = tkinter.Tk()
canvas = tkinter.Canvas(master, bg="white", height=500, width=500)

if x < 0 or y < 0:
    print("точка за границей")
    exit()
if (x + 20 * k) > 500 or (y + 20 * k) > 500:
    print("точка за границей")
    exit()

while e < 500:
    canvas.create_line((0, e), (500, e))
    canvas.create_line((e, 0), (e, 500))
    e += 10
canvas.create_polygon((x, y), (x + 10 * k, y), (x + 10 * k, y + 10 * k), (x + 20 * k, y + 10 * k),
                      (x + 20 * k, y + 20 * k), (x + 10 * k, y + 20 * k), (x + 10 * k, y + 30 * k), (x, y + 30 * k), fill="blue")

canvas.pack()
master.mainloop()
